class CreateAttachmentLinks < ActiveRecord::Migration
  def self.up
    create_table :attachment_links do |t|
      t.integer :attachment_id
      t.references :attachable, :polymorphic => true
    end
  end

  def self.down
    drop_table :attachment_links
  end
end
